module.exports = mongoose => {
  let model = {}
  student:
  {
    let schema = new mongoose.Schema({
      no: { type: Number, unique: true},
      name: { type: String },
      stu_no: { type: Number, unique: true },
      class_raw: { type: String },
      year_raw: { type: String },
      academy_raw: { type: String },
      major_raw: { type: String },
      remain_sum: { type: String }
    })

    model.item = model.doc = mongoose.model('Student', schema)
  }

  return model
}
